package com.jiaquyun.jcyx.jetpack.api

import com.jiaquyun.jcyx.base.BaseManager
import com.jiaquyun.jcyx.entity.ArticleDetailsResponse
import com.jiaquyun.jcyx.entity.ArticleListResponse
import com.module.lemlin.http.HttpResponseData
import rxhttp.RxHttp
import rxhttp.await

class NotifyRepository : BaseManager() {

    //https://mall.jiaquyun.cn/api/notify/systemNotify?page=1&rows=20&type=1
    /**
     * 消息
     *
     * @param type 类型
     * */
    suspend fun notifySystem(type: String, page: String, rows: String): HttpResponseData =
        RxHttp.postForm("/api/notify/systemNotify")
            .add("type", type)
            .add("page", page)
            .add("rows", rows)
            .await()
}